package ruifeng.zcj.communcationring.ui.recruit;

import android.Manifest;
import android.annotation.TargetApi;
import android.content.pm.PackageManager;
import android.os.Build;
import android.webkit.WebView;

import java.util.ArrayList;

import ruifeng.zcj.communcationring.base.WebViewFragment;
import ruifeng.zcj.communcationring.groble.FragmentArgs;
import ruifeng.zcj.communcationring.groble.Whole;


/**
 * 秒聘2.html
 * Created by Administrator on 2016/8/26 0026.
 */
public class RecruitFragment extends WebViewFragment {

    public static final String FILM_URL = "RecruitFragment";

    @Override
    protected String LoadUrl() {
        return Whole.web_recruit;
    }
    // 切换到其他Fragment
    @Override
    protected void onUserInvisible() {
        mWebview.stopLoading();



    }


    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        if (!url.equals(Whole.web_recruit)) {// 如果不等于学院
            FragmentArgs fragmentArgs = new FragmentArgs();
            fragmentArgs.add(FILM_URL, url);
            RecruitActivity.launch(getBaseActivity(), RecruitFragment.class, fragmentArgs);
        }
        return false;
    }


}
